package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-23
 */
public class RbacRole extends Model<RbacRole> {

private static final long serialVersionUID = 1L;

                @TableId(value = "sid", type = IdType.AUTO)
                private Integer sid;
        private String name;
        private String remarks;
        private Integer createUserId;
        private Date createTime;

        @TableField(exist = false)
        private List<RbacPermission> rbacPermissionList;


    public List<RbacPermission> getRbacPermissionList() {
        return rbacPermissionList;
    }

    public void setRbacPermissionList(List<RbacPermission> rbacPermissionList) {
        this.rbacPermissionList = rbacPermissionList;
    }

    public Integer getSid() {
            return sid;
            }

        public void setSid(Integer sid) {
            this.sid = sid;
            }

    public String getName() {
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public String getRemarks() {
            return remarks;
            }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
            }

    public Integer getCreateUserId() {
            return createUserId;
            }

        public void setCreateUserId(Integer createUserId) {
            this.createUserId = createUserId;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

@Override
protected Serializable pkVal() {
            return this.sid;
        }

@Override
public String toString() {
        return "RbacRole{" +
                ", sid=" + sid +
                ", name=" + name +
                ", remarks=" + remarks +
                ", createUserId=" + createUserId +
                ", createTime=" + createTime +
        "}";
        }
        }
